<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>收货地址表</title>
 <%@ include file="/page/include.jsp" %>
</head>
<link rel="stylesheet" type="text/css" href="${rootPath}/statics/plugins/zTree/css/zTreeStyle/zTreeStyle.css" />
<body class="nav-md" style="background-color: #f7f7f7">
	<div class="container body">
		<div class="main_container">
			<div class="framebody" style="min-height: 100%;" role="main">
				<div class="row">
					<div class="x_panel">
						<div class="x_content">
							<form class="form-horizontal form-label-left" novalidate id="deliveryAddressForm"  method="post" action="${pageContext.request.contextPath}/deliveryAddress/saveOrUpdateDeliveryAddress">
								<input type="hidden"  id="id" name="id" value="${deliveryAddress.id }" >
								<div class="item form-group">
									<label class="control-label col-md-1 col-sm-1 col-xs-12" for="customerName"><span class="required">*</span>客户姓名: 
									</label>
									<label class="control-label col-md-1 col-sm-1" style="text-align:left;" id="label_customerName">${deliveryAddress.customerName }
									</label>
									<label class="control-label col-md-3 col-sm-3" style="text-align:left;">
										<a id="toSelectCustomer" href="#" style="color:#85ADF6;"><i class="fa fa-search fa-fw"></i> 选择客户</a>
										<input type="hidden" id="customerId" name="customerId" value="${deliveryAddress.customerId }" />
									</label>
								</div>
								<div class="item form-group">
									<label class="control-label col-md-1 col-sm-1 col-xs-12" for="companyName"><span class="required">*</span>单位名称: 
									</label>
									<label class="control-label col-md-10 col-sm-10" style="text-align:left;" id="label_companyName">${deliveryAddress.companyName }
									</label>
								</div>
								<div class="item form-group">
									<label class="control-label col-md-1 col-sm-1 col-xs-12" for="roleName"><span class="required">*</span>收货人: 
									</label>
									<div class="col-md-3 col-sm-3 col-xs-12">
										<input id="receiverName" name="receiverName" value="${deliveryAddress.receiverName }" class="form-control col-md-3 col-xs-12"  type="text">
									</div>
								</div>
								<div class="item form-group">
									<label class="control-label col-md-1 col-sm-1 col-xs-12" for="roleName"><span class="required">*</span>联系电话: 
									</label>
									<div class="col-md-3 col-sm-3 col-xs-12">
										<input id="mobile" name="mobile" value="${deliveryAddress.mobile }" class="form-control col-md-3 col-xs-12"  type="text">
									</div>
								</div>
								<div class="item form-group">
									<label class="control-label col-md-1 col-sm-1 col-xs-12" for="roleName"><span class="required">*</span>所在地区: 
									</label>
									<div class="col-md-8">
										<select id="province1" data-width="125px" name="provinceCode" init-value="${deliveryAddress.provinceCode }" value="${deliveryAddress.provinceCode }" class="selectpicker" title="省" data-live-search="true" ></select>
										<input type="hidden" name="provinceName" id="provinceName" value="${deliveryAddress.provinceName }" />
										&nbsp;
										<select id="city1" data-width="125px" name="cityCode" init-value="${deliveryAddress.cityCode }" value="${deliveryAddress.cityCode }" class="selectpicker" title="市" data-live-search="true" ></select>
										<input type="hidden" name="cityName" id="cityName" value="${deliveryAddress.cityName }" />
										&nbsp;
										<select id="area1" data-width="125px" name="areaCode" init-value="${deliveryAddress.areaCode }" value="${deliveryAddress.areaCode }" class="selectpicker" title="区" data-live-search="true" ></select>
										<input type="hidden" name="areaName" id="areaName" value="${deliveryAddress.areaName }" />
										&nbsp;
										<select id="street1" data-width="125px" name="streetCode" init-value="${deliveryAddress.streetCode }" value="${deliveryAddress.streetCode }" class="selectpicker" title="区" data-live-search="true" ></select>
										<input type="hidden" name="streetName" id="streetName" value="${deliveryAddress.streetName }" />
										&nbsp;
									</div>
								</div>
								<div class="item form-group">
									<label class="control-label col-md-1 col-sm-1 col-xs-12" for="address"><span class="required">*</span>详细地址: 
									</label>
									<div class="col-md-6 col-sm-6 col-xs-12">
										<input id="address1" name="address" value="${deliveryAddress.address }" class="form-control col-md-3 col-xs-12" placeholder="详细地址"  type="text">
									</div>
								</div>
								<%-- <div class="item form-group">
									<label class="control-label col-md-1 col-sm-1 col-xs-12" for="roleName">邮政编码: 
									</label>
									<div class="col-md-3 col-sm-3 col-xs-12">
										<input id="postCode" name="postCode" value="${deliveryAddress.postCode }" class="form-control col-md-3 col-xs-12"  type="text">
									</div>
								</div> --%>
								<div class="item form-group">
									<label class="control-label col-md-1 col-sm-1 col-xs-12" for="isDefault"><span class="required">*</span>是否默认地址: 
									</label>
									<div class="col-md-4 col-sm-4 col-xs-12 ">
										<label class="control-label" for="isDefault"><input type="radio" name="isDefault" <c:if test="${deliveryAddress.isDefault eq '1' }">checked</c:if> value="1" class="form-control" /> 是</label>
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<label class="control-label" for="isDefault"><input type="radio" name="isDefault" <c:if test="${deliveryAddress.isDefault eq '0' }">checked</c:if> <c:if test="${empty deliveryAddress.isDefault }">checked</c:if> value="0" class="form-control" /> 否</label>
									</div>
								</div>
							</form>
							<div class="ln_solid"></div>
							<div class="form-btn-content">
								<a id="btn_save" class="btn btn-primary">确定</a>
								<a id="btn_back"class="btn btn-default">返回</a>
							</div>
							<input type="hidden" id="layer_opt_status" value="0" />
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript"  src="${rootPath}/js/customer/deliveryAddress_form.js"></script>
</html>